Search
Diagram.CreateImage Method (Point[], Single, Boolean)
See Also
 






Creates a bitmap image representing this diagram, clipped by specified polygon and scaled by specified factor.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public IImage CreateImage (
    Point[] clipPoly,
    float scale,
    bool prepareImages = false
)

Visual Basic  Copy Code

Public Function CreateImage( _
    clipPoly() As Point, _
    scale As Single, _
    Optional prepareImages As Boolean = False _
) As IImage

 Parameters

clipPoly

An array of Point values.

scale

Specifies the scale factor as percentage of the original size.

prepareImages
Optional.

Specifies whether images are pre-rendered within a graphic context prior to an export. This is useful, when the exported diagram is not being drawn on an actual graphic context. The default value is false.

 Return Value

A Microsoft.Maui.Graphics.IImage instance.

 Remarks

Pixels outside the specified path are set transparent.

 See Also